﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess_Layer;
using System.Data;
using System.ComponentModel;
using DTO;
namespace Business_Layer
{
    public class GiangHangBUS
    {
        public DataTable getAll()
        {
            return GiangHangDAC.getALL().ToDataTable<GiangHangDTO>();
        }
        public int Insert(GiangHangDTO gh)
        {
            try
            {
                GiangHangDAC.Insert(gh);
               
                return 1;
            }
            catch
            {
                return 0;
            }
        }

     
    }
}
